
import { createApp } from 'vue'
import App from './App.vue'
import pinia from '@/stores'
import router from './router'
import moment from 'moment'
import 'virtual:svg-icons-register'
import globalComp from '@/components/common'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import "echarts";
import ECharts from 'vue-echarts'
import 'element-plus/theme-chalk/dark/css-vars.css'
import '@/assets/css/index.scss'
import '@/assets/ali-icon/iconfont.css'
import "animate.css";
// import 'uno.css'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

const app = createApp(App)


//注册全局element plus的icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.component('v-chart', ECharts)

app.config.globalProperties.$moment = moment

app.use(pinia).use(router).use(globalComp).mount('#app')

